Could this not just be
```if name_strategy == 'auto'```