Refactor hotkey-sites localstorage code.