Move state out of browser.