Similarity refactoring.