def flatten_route_sched_data(resp_json: dict) -> list:
    """
    Helper function to reformat bus schedule response data into flat format.
    """
    # Remove and store name
    name = resp_json['Name']
    del resp_json['Name']

    # Process direction, trip, and stop information
    data = list()
    for direction, trip_elem in resp_json.items():  # list of dicts
        for trip in trip_elem:  # trip_elem is list of dicts
            for stop in trip['StopTimes']:  # stops is list of dicts
                row = {'Name': name}
                row.update(trip)  # add trip data for respective stop
                del row['StopTimes']  # remove StopTimes dict object
                row.update(stop)  # store specific stop_time as row data
                data.append(row)
    return data