Fix #1381 by using a more public way of handling OData URL rewriting.