Removing duplicate markup