Abstract helper functions into Util module (for reuse in json-schema)