def _extract_protocol_layers(deserialized_data):
    """
    Removes unnecessary values from packets dictionaries.
    :param deserialized_data: Deserialized data from tshark.
    :return: List of filtered packets in dictionary format.
    """
    packets_filtered = []
    for packet in deserialized_data:
        packets_filtered.append(packet["_source"]["layers"])
    return packets_filtered