Rename restoreIdentity to restoreOwnIdentity to make the purpose more
clear.