pub(super) fn classify_side_buffer_mode_family(
    primary_name: Option<&str>,
    secondary_name: Option<&str>,
) -> &'static str {
    let name = primary_name.or(secondary_name).unwrap_or_default();
    if name.starts_with("Bridge") {
        "bridge"
    } else if name.starts_with("Tunnel") {
        "tunnel"
    } else if name.starts_with("BallastCap") {
        "ballast_cap"
    } else if name.starts_with("TrackCap") {
        "track_cap"
    } else if name.starts_with("Overpass") {
        "overpass"
    } else if name.is_empty() {
        "unknown"
    } else {
        "other"
    }
}
