Make a macro for less boilerplate when moving variables (#12182)

Also: 
- Simplify open listener implementation
- Add set_global API to global traits

Release Notes:

- N/A
3eb0418bdaMikayla Maki committed on 5/23/2024, 5:07:29 AM· committed by GitHubparent8b57d6d
5 files changedLine totals unavailable