Add rebuild_group_metadata method