Complex sentence: Planet formation is affected by the ages, metallicities, and orbits of stellar populations within a galaxy and vary between the different types of galaxies.
Split into simpler sentences: Planet formation is affected by the ages, metallicities, and orbits of stellar populations within a galaxy. Distribution of stellar populations within a galaxy varies between the different types of galaxies.