Warehouse and factory