pipeline: move function to pipeline.c and make static

... as it was only used from there.
2 files changed