For example in CHostInterface->get() option "selectItems" return all types of items include discoveries. It must be another option "selectDiscovery" to get only discovery items.
Situation where called API::Item()->get() with option 'filter' => array('flags' => null) must be separated - Items get through API::Item(), discovery through API::DiscoveryRule()