Move more functionality from sync to merger.