[ELY-26] Transition the realm API to use a RealmIdentity which now encapsulates the identity specific operations.