Restoring now preserves the string=>id mapping. Without this, the id which
Factories exposed was meaningless.