Factor out the repository for storing settings.