def normalize_ship_name(ship_name: str) ->str:
    """
    Removes the redundant "trip name" after the ship name.

    Args:
        ship_name: The raw string, e.g. 'BOATY MCBOATFACE - MCBF1234'
    Returns:
        The normalized name, e.g. 'BOATY MCBOATFACE'
    """
    if ' - ' not in ship_name:
        return ship_name
    return ship_name.split(' - ')[0]
