Refactor group configurations.