tiny refactoring to increase code climate rate