Remove rules that are not used within the form