Converts a call chain of functions with a single parameter to an equivalent pipe expression.