private LocationCollectionViewModel Reduce(LocationCollection locationCollection, MapTransform converter, double tolerance, IDoubleToBrushMap doubleToBrushMap, bool isEnabled, Brush disabledStroke) { return(new LocationCollectionViewModel { Locations = new LocationCollection(locationCollection.Reduce(converter, tolerance)), //Stroke = isEnabled ? doubleToBrushMap.Map(locationCollection[1].Value) : disabledStroke }); }