Refactor: iterate better suited than reduce