Get rid of ensure_xhr decorator (mostly useless, IMO).