Refactoring Invoices controller before actions