Don't assign methodInfo to the function object, which has resolve hooks.