invoice_page1 refactoring