Creating rules to maintain memberships of DRS groups using a custom function