Move templates into their own files