Moml updater: add a static method that updates the XML tree by removing
the unnecessary expression mode node