All of these settings should be defined (with their default values) in [avocado.conf.global_settings](https://github.com/cbmi/avocado/blob/master/avocado/conf/global_settings.py). Then you can directly reference the settings:

```python
from avocado.conf import settings

if not settings.SHARE_BY_USERNAME:
    # etc.
```