refactor(templates): centralize opt-in capability gates (#7489)