I thought about that and then decided to keep the definitions near their consumers.  Sure I can change it if you think it's worth the effort.  But to be honest this whole script is a horrible unstructured mess which we are not planning to keep beyond this release, so is it really worth it to "polish a turd"? ;)