Clean unnecessary rules