To dream of a factory represents productivity. The conditions of the factory reflect the health of your ability to contribute, create, or get ahead in the world.
In a negative sense a factory may represent issues that are getting out of hand or becoming excessive.
People who are paid well, but are unsatisfied with their jobs often dream of sweatshop factories filled with moaning and abused workers. This reflects their success restricting them and costing them happiness.