Extracted code to create state actions into _content_flow_theme_events() for eventual reuse.