Use with redefs in with-stubs macro.