UserOptionsManager calls 3 hooks:
- onUserResetAllOptions - according to codesearch, this hook is never used, so we can just deprecate it.
- onUserLoadOptions( User $user, array &$options ) - can just replace $user typehint with UserIdentity
- onUserSaveOptions( User $user, array &$newOptions, array $originalOptions ) - this one is tricky. In order to fulfill the requirements of the parent task, we need to pass 'modifiedOptions' instead of newOptions. And $user parameter should become UserIdentity