Moved BSON converter from core