restore elimination of shadowed rules
broken by commit 81f9ff29ed02773db50c709ae107fc107a46a86c