Extracted util functions out of main classes
Extracted util functions out of main classes

These are multi-purpose so no need to have them included in the caller
classes.

sgnn7/website-sgnn7-org,sgnn7/website-sgnn7-org