When registering rule on startup, take a rule int id instead of a rule when removing active rules on removed rules