Extracted CopyItem class to own file
Refactoring of media type matching