move CDEF to mongo_ffi file.