Refactoring and moving stub JIT code to to libzca