Refactor downloader to not use members.