Move templates into extensions