Revert wrapFunction closure