Fix rubocop's RedundantBegin warnings.