Prune redundant ignoring rules
Minor refactoring