Any reason not to reuse `XPath` class to compile the query expression in case it is not one?