Cleanup after upgrade.