Refactor WinningInvoice to be a module.