PLA-597 remove global declaration from template