Adapter factory.. Less code and all in one place! :D