Move automatic rules to a separate table, ticket #2416