Removal some duplicate patterns.