wild idea i had dreamed of but is almost certainly not worth the effort to make making the factories have changeable floor numbers from like the constant cobinuator or other means.
This is technically possible but there is no event to read circuit conditions from a combinator. It would have to be done in an on_tick and hurt preformance. The best you could do is this mod: https://mods.factorio.com/mod/recursive-blueprints
This can set tiles based on circuit conditions.