public function scaffoldLoader(GridField $gridField)
    {
        $gridlist = $gridField->getList();
        $class = ($gridlist instanceof HasManyList) ?
                "ListBulkLoader" : "BetterBulkLoader";
        //set the correct constructor argument
        $arg = ($class === "ListBulkLoader" ||
            is_subclass_of($class, "ListBulkLoader")) ?
                $gridlist : $gridField->getModelClass();
        $loader = new $class($arg);
        $loader->setSource(new CsvBulkLoaderSource());

        return $loader;
    }