Remove unnecessary call to list as map already returns an iterable.