download_boot_media function refactoring - split it on smaller one; make sure that complex function aren't check by 'if' as whole body of the function will be processed even error occut