Remove need for isRight in removeReplicateMapping.