Creation of rule repository use old API.