Grouping and normalization need to happen together.