[backend] Add cloning functionality to the dispatcher.