Would it not be better to move this function into somewhere in `/sapi` where both can be linked to it and include it?