s3:registry: move (commented out) hilvl util functions to reg_api_util.c