[REVIEW ONLY DO NOT MERGE] Exportgroups

you may also omit the contains check as remove will only remove it if the set contains it