DownloadPriorityCalculator: functional style