Unfortunately, cleaning this up also requires getting rid of the `repository` import in `config.py`. If not, importing `config` in `modules.py` introduces a circular dependency.
Reversing the `repository` import is proving to be quite tedious...