Refactor invoice.