Refactoring pipeline runner.