This is the key line - this removes the loggedIn namespace after upgrading.