Loader scene code refactoring.