Moving code generation templates into separate files

This is a neat trick, but it confuses IDEs and code inspection tools alike. There doesn't seem to be any drawback to having separate template files that I can think of.