Moves templates to its own file.