Refactoring the reading of replicas and ground truth data.