Remove duplicated markups