[Templates] Remove unused code