(CS-5496) Move templates service from classes construct