This will not be totally trivial to implement, right? And it will add some extra stuff to query-replace-read-args that is very much query-replace specific.