Remove redundant markers