Revert "Simplify ScroogeGen."

This reverts commit 47ee133566c5a6eb2e34c7bc64a3801ee72a5a0f.
Sync of https://github.com/pantsbuild/pants/commit/e95ccc94b7c511101bd37ea09a473ca038963d22