Refactoring for PyGlass remote event changes.