Grouping of affile rules