I was however under the impression that when you took over a state, it would loose it's factories?
States keep their factories when annexed. If there are more than 8 in the combined state some are lost. Not sure exactly how they are picked but I would assume the least profiable are removed.