Refactor ItemNotabilityFilter to avoid ItemId::newFromNumber
Instead it uses ItemId::getNumericId() now, which is well defined via
an interface. The remaining technical debt is what
SiteLinkLookup::getLinks returns. I hope this is much more local now
and much easier to change in the future. This is tracked in T114904.