Small refactoring of AppLoader