Move getPropertyDescriptorDefinition to private function