Removed all references to custom XPath functions, except when registering them.