@staticmethod
def _envvar_to_ini(key):
    """Transforms an env var formatted key to ini formatting."""
    if key.startswith('CKAN___'):
        key = key[7:]
    key = key.lower()
    key = key.replace('__', '.')
    return key
