Perhaps we could emit the function at the top of the file if any of its imports need it?