Refactors ingest() method on map edit view.