refactoring for pipeline namespaces