rubocop perceived complexity workaround