Simplify discounts(). #1919