Move code into Response::decodeAnswer()