Refactor pipeline printing