Production of space ships is a resource and capital intensive process, and while many rebel ships look like they were first cargo or transport ships with military systems added on after, the X-Wing (and similar) are dedicated built space fighter jets. Who’s making them and why hasn’t the empire arrested/sanctioned/blown up the factories used?