Refactoring the .each expression.