Setup state restoration identifiers and classes.