def METHOD_NAME(event_name, event_handler):
    if event_name == 'doc-changed':
        HOST_APP.app.DocumentChanged -= event_handler
    elif event_name == 'doc-closed':
        HOST_APP.app.DocumentClosed -= event_handler
    elif event_name == 'doc-opened':
        HOST_APP.app.DocumentOpened -= event_handler
    elif event_name == 'view-activated':
        HOST_APP.uiapp.ViewActivated -= event_handler