Fix rubocop errors and mask occurances in services_manager.rb