Fixed rubocop's Blocks warnings.