refactoring context definition