What about one of these ideas:
1. Block count
Make any ship with more than 10,000 blocks(keep in mind, a cube with sides just 10 blocks long has 1,000 blocks!) be able to "support" a factory, a ship with 12,000 can support a second factory, ect.
At 20,000 blocks you can place factory...