Remove no more used code on active rules