Light refactor so unit tests don't have to depend on Microsoft.Build.Utilities.v4.0.dll.

The build server wasn't liking the reference.