Deconstruct a composite function into two functions.