Do these form like stars (as the primary mass in a cloud collapse?), or do they form like solar planets (secondary masses around a star) and get ejected? If the former, is there any mechanism for ejecting light elements to produce something like a terrestrial planet or are these inherently gas planets?