Refactor Deserialize into a TextReader.