Refactor invoice template code so it can also be multi-tenant