code: protected function extractRules(array $data)
      {
          $rules = [];
  
          foreach ($data as $field => $fieldData) {
              $rules[$field] = $fieldData[1];
          }
  
          return $rules;
      }
docs: Extract the field ruleset from the data array.
  
  @param  array  $data
  @return array