Merge two servers

I have a customer that has been running two servers (two different divisions) and now wants to merge both companies into the same server. Is there an easy way to export the configuration of one server and import it into the other without losing the configuration?

Each server has different extension ranges and DIDs so there is no conflict. The only thing I need to keep separate is that each division can only make calls through their own E1.