Separate the dump tables code from the base generation code (moved to

dump_base_tables.