Extract Javassist code generation part as JavassistUtil