Refactor global settings store and model.