I think @jimis took this from the previous code, and IMO this is not worth fixing now, let's open a cleanup ticket.  This code runs only in a specific case ("I am the policy hub") which today is constrained to just two kinds of Linuxae