def get_cost(record):
    """Parse CDS cost string to extract currency and value."""
    SUPPORTED_CURRENCIES = ["EUR", "USD", "GBP", "CHF", "YEN"]
    # NOTE: We will try to extract and migrate only the most common case, which
    # comes to the form "EUR 88.40". If it comes in any other form will
    # store it in notes.

    try:
        [currency, value] = record.get("cost").split(" ")
        if currency.upper() in SUPPORTED_CURRENCIES:
            return {"currency": currency.upper(), "value": float(value)}
    except ValueError:
        # We don't care, we will check again at get_acq_ill_notes()
        pass