hlint warns refactoring