from typing import Dict


def extract_model_title(data: Dict) -> Dict[str, str]:
    """Extract form name as title, with service name as backup."""
    form_name = data["forms_meta"].get("FormName")
    return (
        {"nb": form_name}
        if form_name
        else {"nb": data["service_meta"].get("ServiceName")}
    )