Restructuring Object-Oriented Applications into Component-Oriented Applications by Using Consistency with Execution Traces