Minor refactoring for Rubocop 0.26.1