Cleanup before working on filters.