Cleaned up BuildFileWrangler.

Factored out all remaining duplicate code in BuildFileWrangler.

The class implementation is clean.