Accept named args in factory.