Remove unnecessary pattern