Refactoring MSBuild task.