Should Your Warehouse Be Closer to the Factory or the Customer?