Refactor: create one template for all packages