Update discounts to work with new core.