Refactored the text templates so that they generate a single output file.