def extract_entry_fields(table, entry, feed):
    """
    Given a table intance, entry dict and feed details, extract fields found in the table
    """
    row = {'feed': feed.get('id', feed.link)}
    for key in table.columns_dict:
        value = entry.get(key)
        if value is not None:
            row[key] = value
    return row
