LPS-48902

this is just a refactoring of some code. its not related to a customer ticket so theres no priority. just wondering if it makes sense to you and if you think its even worth doing. basically we check if thumbnails exist for a file, then export the file. but in the export, we again check if thumbnails exist, which we dont need to do since we already did. let me know what you think...