Update ViewLoader::registerFactory to use single parameter.