See #425. Grouping by team type.