Improve pills-filter logic
Remove parseDiscount/formatDiscount, fix tests