Flexible Warehousing for Middle-Mile Logistics Providers