Refactor points, segments, markers data into route object.