Detach osm graph from route graph in preparation to serialise route graph.