Prepare for selective UIA event registration by default (#13297)
Summary of the issue:
We would like to switch to selective UIA event registration by default.
Description of how this pull request fixes the issue:
Convert the selective UIA registration option to a ternary setting and factor out logic to determine whether to register selectively into a new function.