Refactor vlf-query-replace and don't adjust batch size if only
statistics are enabled.