Cleaning the code and removing the replicas.