Revert helper implementation. build_go_to_hash also a helper.

This reverts commit 58fdd375aecad6f1cb0c6168e431408a531e2d4f.