Backport replication change to megacarbon, refs #175

refs #289