Refactored save methods in pipelines