Code reorg to handle responses across the client library.