Recreate object_version and object_reference tables.
Refactored