Text this: SOFTWARE REFACTORING USING PATTERN RECOGNITION TECHNIQUES