Move private function to outside of exported scope