Fix rubocop offenses

MSP-11400