Revert "Implemented the merging logic."

This reverts commit b4fa8d6ad4fc1f84b5eff2f728f5f3008c00c2d8.