Refactor. Moved methods from StartupHandler to UnityModeAddin.