remove redundant markup