(Issue 3572) Macroify group memberships