Simplify build file generation a bit.
extract getTemplate() method.