A Refactoring Technique for Large Groups of Software Clones