Cart: Improve support for line item discounts.