Cleaning up code on the Invoice.mark_as_paid method.