Add utility functions into an appropriate class.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>