protected function restoreLegacySupportHook(&$data) {
    if (!isset($data->version) || $data->version === 'v0.3-0') {
      if (isset($data->poll) && is_object($data->poll)) {
        $data = $data->poll;
      }