Refactor TextGeneratorEngine towards parallel textgen from make