Extract all tables and objects into modules.