subtree merging is a form of this. but yes, there are other tools like Goven or perl scripts.