Remove useless rules