Remove unnecessary ant pattern