Extracts groups to object/model level.