'Separate raw and remote rules.'

def update_rules(self, rules):

    self.raw_rules = [rule for rule in rules if ('remote_group_id' not in rule)]
    self.remote_rules = [rule for rule in rules if ('remote_group_id' in rule)]
