you could combine the if and elif clauses:
```python
if field.scope == Scope.settings or (field.scope == Scope.content and  field.name != 'location':
    fields[field.name] = json_value
```