Getting Similarity Done and Refactoring COde