fn build_field_from_nested_paths( name: &str, existing: Option<&FieldRef>, nested_paths: &[&[String]], ) -> FieldRef