Fix Rubocop offenses.

There are now 6 remaining offenses, which will require more lengthy
refactoring.