Refactor global settings store.