Revert "Pull out the RG build magic"

This reverts commit 4d804f443a2aa463f0cf1330932d8471fed7d51d.