Extract method from Twitter::Error#parse_error