Refactor MethodStub
Extract dynamic analysis helper source into an ERB file