I think we could push some of this logic into the document, using the "Document Extensibility Framework" to add an `#export_as_geojson`.