Refactoring: iterate directly over collection items