Fix definition ordering (style)
Fix definition ordering (style)

Rearrange code so that helper functions are declared and defined as late
as possible, per vistk style.

Kitware/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit