Flatten out the partial applications.