def extract_status_and_value(old_value):
    """ Extract the metric value and status from the old value. """
    value, status = -1, None
    if isinstance(old_value, int):
        value = old_value
    elif isinstance(old_value, str):
        value = float(old_value) if '.' in old_value else int(old_value)
    else:
        value, status = int(old_value[0]), old_value[1]
    return value, status