That's an unsolved problem. You'd be surprised how hard it is to separate certain parts from each other. But the first bulk sorting step usually takes care of picking out the larger assemblies and there is a class 'assembly' which gets picked out all by itself by the machine. That at least allows you to concentrate on the parts that are still stuck together.