A Dual Clustering Approach to the Extract Class Refactoring