remove no used bson
 functions in cdef