Gauss' law says that the net electric force inside a hollow, uniform, not rotating sphere is zero. Since gravity is also proportional to the inverse square of the distance, I assume this should apply to the force of gravity inside a hypothetical uniform shell, like a hollow planet. So what makes planets develop to become denser at the center or as you get deeper? If a planet happened to form as a shell, would gravity shape it into a sphere with a higher density as you go deeper? The centripetal force from spinning tends to make denser materials move out more in a viscous fluid, so spinning doesn't seem to create the density distributions we see.
If it's not uniform, and the center ends up denser by chance, then that non-uniformity could maintain the density distribution, but if we somehow got to a reasonably uniform, hollow shell, would there be a tendency of the shell to deform into a ball with increasing density with depth, a uniform sphere, or retain its shape as a shell?