Move the mozSettings logic to the state manager