Since each case body is roughly the same, it might be worth pulling it out to a helper method, e.g.;

```
// Case for ScopeField.Environments
UpdateScopeValues(scopeValue, environments);
```