If that's so then we should avoid the instantiation and the function call based on a check like this (I'm optimizing for less space used in the comment form), that would save us some unneeded processing in pages that we don't target for NLP:

```php
return ( $wgTitle instanceof Title && $wgTitle->getNamespace() in $wgContentNamespaces )  ?
    (new WikiEntitiesService)->registerEntitiesWithDFP() :
    true;
```