With UM ² when changing filament, switch off the machine and make the extrusion by hand. I propose another solution. Printed a small square of 1cm side with a tunnel in the center. At startup, there is the old filament. And then, as and to the extent, changes color and becomes clean.