Create the factory adapter.