Making a mobile "factory" is impossible, it is however possible to make an ability to spawn a ship quite easily via an Ability ala the the Vasari Phase Gates, I believe there is another way to do it but I cant recall of the top of my head, both methods from what I do remember though revolve around abilities.
As Ryat mentioned its impossible to make a mobile factory due to the UI constraints which are hardcoded.