Restore recode_legacy_state_answer deleted by mistake