A metaphor for defining the scope of refactoring tasks