Add interface of rule factory.