Remove unnecessary rules