A combination of cosmic processes shapes the formation of one of the most common types of planets outside of our solar system, according to a new study.