Tiny refactoring of creating DPU template from DPU instance.