Simplify group reference bookkeeping in root_group_name_for