Remove unnecessary patches.