Remove duplicated private function.