def has_displayable_tracked_flight(overhead):
    tracked = getattr(overhead, "tracked_data", None)
    return bool(tracked and not tracked.get("pre_flight"))


def tracked_overrides_flights(overhead):
    tracked = getattr(overhead, "tracked_data", None)
    return bool(has_displayable_tracked_flight(overhead) and tracked.get("override_flights"))


def tracked_overrides_idle(overhead):
    tracked = getattr(overhead, "tracked_data", None)
    return bool(has_displayable_tracked_flight(overhead) and tracked.get("override_idle", True))
