Use stand-alone function getClassAd() to read ads off the wire.
Make IsValidAttrName/Value() into stand-alone functions.