class Chatroid
  module Adapter
    extend self

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

class Chatroid
  module Adapter
    def self.find(service_name)
      const_get(service_name)
    rescue NameError
      nil
    end
  end
end

Refactor to be more simple
Refactor to be more simple
