This hook is called much earlier than FilterItem and allows faster and more robust filtering of items.