Refactor out AntlrPipelineTasksGenerator for both compile specific grammar and compile all grammar rule to use