Refactor InvocationLinker and get block logic into Handle methods.