Remove redundant runtime metaprogramming for isXhr