Per my understanding the gravitized version of the factory already permits the smaller versions of the land factories inside it, since they themselves are land factories, but I can't see an option for space versions of the two smaller factory types. I tend to use Factorissimo's recursion functionality to segregate sections of a factory housing a large production chain, or to permit substantial scaling of the output of a given factory building by turning it into a nested factory instead, but this largely depends on the ability to nest the smaller buildings inside a larger one (or even one of the same size).
For example, for the first use-case, my oil-production build is one medium-sized factory building housing a total of 6 small-sized factory buildings: two that turn oil into petroleum, one that turns that petroleum into plastic, one that turns the petroleum into sulfur, one that turns that sulfur into batteries and sulfuric acid, and one that takes some of the oil input and uses advanced processing on it, turning the heavy oil into lubricant, the light into solid fuel, and the petroleum output to the others that use it. The floor of the outer medium is then used to route the inputs and outputs to/from chests on the outside of the outer medium, as well as barrel some of the crude oil, petroleum, light oil, heavy oil, lubricant, and sulfuric acid for use elsewhere in my outside build. Being able to segregate portions of that build in smaller factories inside is critical to making this viable.
For the second use-case, if my plate-forging factory isn't keeping up, I pick it up and put down a new (empty) factory of the same size in its place, then put the original plate-forging factory down inside the new one, alongside 1 or more copies of that same plate-forging factory, and route additional belts into the new (outer) one to handle the increased consumption, allowing that single exterior "plate-forging" building to consume and produce, in some cases, at the equivalent of about 9 because it actually has those 9 nested inside it).
This is quite a bit more difficult to do with only the largest sized of the factory buildings available for space builds, because the interior of those is often quite a bit more space than I need, and the exterior is quite a bit larger than I'd like to consume for that portion of the build.