I'm using this function in one of my tests. Is it possible to move this code to some other location like utils_spice or any other common location instead of removing this function?