SONAR-4206 Refactor rules registration in order to set the removed status only when a rule was removed