[COOK-4051] Fix Rubocop warnings causing this build to fail.