Moved function to separate project

See <https://github.com/l0b0/pspipe>.