Flatten ContainerSpec.

Same here and for network.