Revert "Pass the discounts array to the filter."

This reverts commit a170732ff1b21d0f5d21955b193178a2f3040c79.