#67579Remove code duplication in DataHandler::copyRecord_processManyToMany()
Description
(This relies on #67510 being merged, as the method name is introduced there; until that happens, the method name is copyRecord_procBasedOnFieldType())
There is an if-elseif construct in the method that contains 99% duplicated code and two extremely ugly conditions. The duplication should be removed, while simplifying the condition to an understandable level (or documenting it properly).