Create factory.