Moving tables to rule files