Refactor duplication code into Invoice model (possibly extract later)