`inventoryFactory` is unused.