Transpiler refactor instanceof