Write a plugin to handle private function automatically.