organize the steps in GremlinPipeline.