Factorize the planet creation