protected function purge(ShipmentInterface $shipment)
    {
        foreach ($shipment->getItems() as $item) {
            if (0 == $item->getAvailable()) {
                $shipment->removeItem($item);
            }
        }
    }