Remove unused bson_to_json methods.
Remove non-existing attribute.