Removes old codepaths related to old templates system

[#85249588]