Remove unnecessary markers.