We now depend on a newer GLib feature here to check the right repositories based on the OS we are running on. As soon as we can break API with AppStream 1.0, all of this logic can be improved further and be generalized.