Rebind instrumentation when duplicating a function.