I'm not sure this function should be defined in this module. For now I'd add todo comment to figure out where to put it