Added setDepth() to product factory

Added a missing property initialization to `ProductFactory`