Extracted fixed parts of XhrPolling.