Clean up much pipes related code using Pipes.Prelude