Move this function with the other private ones at the top of the file.