Making the pipeline factory internal