Code + test to remove a rule