Rewrite provider to use flush