Replace top-level names with template-able names