I think some of these need to reference Host::Base instead of Host::Managed in case users have discovery installed.  In this case I think discovery uploads facts and so there will be facts in the DB referencing a Host::Discovery ID instead.