remove dirty code of bson transform