First stab at removing all code related to replication