Currently we add the favorite button on template pages by inserting it after the watchstar element, entirely in the frontend. Instead of this, we should add a placeholder element via the SkinTemplateNavigation__Universal hook, and then replace/augment that element once it's loaded.
This will make it simpler to target, but mainly will avoid the layout moving after the ext.templateData.templateDiscovery module has loaded.