Use `collectAsMap()` since this is an action.