Do you need the `AsEnumerable()`? I thought you could go straight to the `GroupBy()` because the things exposed on the context were already enumerables.