remove replication related code