[ELY-87] Add ability to replace a rule at an index