Refactoring to dynamically check that the called method is weaved