Factor templates out into their own plugin.