```ruby
class Chatroid
  module Adapter
    extend self

    def find(service_name)
      const_get(service_name)
    rescue NameError
      nil
    end
  end
end
```

Refactor to be more simple
user
```ruby
class Chatroid
  module Adapter
    def self.find(service_name)
      const_get(service_name)
    rescue NameError
      nil
    end
  end
end
```
assistant