Moved replaceReq stuff to Proxy.hs