TECH: switch merge functionality to a visitor so that it behaves as expected in the context of multiple versions.