review cleanup
review cleanup

don't export an internal function, and simplify some code

Signed-off-by: Michael McCracken <af940a25c3809a29235b8e34c90fd6fdacecf6b2@cisco.com>

dvusboy/nomad,nak3/nomad,hashicorp/nomad,hashicorp/nomad,nak3/nomad,hashicorp/nomad,hashicorp/nomad,burdandrei/nomad,burdandrei/nomad,burdandrei/nomad,dvusboy/nomad,nak3/nomad,dvusboy/nomad,hashicorp/nomad,nak3/nomad,burdandrei/nomad,burdandrei/nomad,nak3/nomad,dvusboy/nomad,dvusboy/nomad,nak3/nomad,hashicorp/nomad,dvusboy/nomad,burdandrei/nomad,nak3/nomad,burdandrei/nomad,dvusboy/nomad