Implements rubocop suggestions