For the calculations of the total amount of mass invested in a t2 or t3 fac, the cost of the upgrade is reduced by the mex it is linked to: t3 fac near t3 mex = 240 (t1 fac doesn't get discount while being built) + 600 (t2 with 25% discount) + 2362.5 (t3 fac with 25%discount) = 3202.5 total (and not 4200). It makes upgrading factories cheaper, that is quite important (1000 mass is not meaningless).
I kept values relatively low so that it's not mandatory to do the factory near mex combination. Keep in mind that if a factory benefit from 2 t3 mexes, it gains 50% discount. That is fairly big. Along with a few t2/t3 mass fabs, it can even achieve to produce units "for free mass" (except it's not free since the initial cost of mass fabs and their energy upkeep is far from free). In some custom maps, a factory can benefit from 4 mexes, which mean that at t3, it will produce units for free. That's the reason why we should not go further than the 25% discount.
The values I suggested are simple:
t1 mex = 10% discount
t2 mex = 15% discount
t3 mex = 25% discount.
These values can be further adjusted, for instance 15% / 20% / 25% to give a slightly bigger discount to t1 and t2 mexes, but we need to keep the values reasonable. It should indeed not become the most efficient way to manage FA eco; it should be a decent alternative to storages. I ran some tests and I think 25% for t3 is the max value that can be chosen after that point, it becomes a bit too good.
Finally, it boosts t2 and t3 stages of the game more than t1 and t4, but I think it's not a bad thing.