Fix table flavor KAT generation.
Refactor local flavor as a cmd line switch that combines with different generated flavors.