The clearing of a cart is now possible (+refactorings).