Refactor plugins downloader