Moved code out of the DownloadLicensesMojo to make the class more readable