Remove unneeded level from the group id.