[MIN] XQuery refactoring: numeric functions