Methods to remove redundant code when converting Word to HTML