Integrating with factory classes