Organize rules into categories