Finish refactoring the localstorage settings.