refactoring of IMethodScopeWeaver