read-tree: reorganize bind_merge code.