cosmetic: use classmethod as a decorator in config.py.