Moved calculateDiscountedAmount to top level

Rather than having calculateDiscountedAmount as a default method on
the Discountable class, lets just move it to a top level function.