CORE-5773: finished the code to format pipelines containing Agave steps