Refactor to avoid exposing the DownloadManager.