Clean code to pass rubocop.