Abstract out post-registration handling of pre-registered modules.
Add table.clear().