Please replace `Rule` with `RuleInterface` in whole file.