Decoupling processing response from xhr.