Refactor DynamicObjectInvocationHandler