Refactoring BsonNode