Refactoring podle rubocop