Wrap a structure around fetch filters, and move the filter
API to a separate #include file.