#66878Remove duplicate code by using internal API
Description
In the TYPO3\CMS\Core\Resource\File object the logic to load metaDataProperties is implemented at multiple places but there is also a function that handles this logic.
This function should be used instead of the duplicate code everywhere.