Refactoring pipeline commands