Move asset loading to a loader class.