The formation of the outer planets are affected by their distance from the sun with having them to maintain the lighter elements that they are composed of such as the hydrogen and helium, having them far away will also make their planet more cooler as the sun is distant from them.