Rewriting xerath