fn extract_optional_i32(payload: &Value, field: &str) -> Option<i32>
Extract an i32 from a JSON payload field, returning None if absent.