Reverting replicaprepare commands and export