Code refactoring in createChangesets task.