Updated the factory to accept dict instead of kwargs