Move WsWrapper to util.