If you're not rushing, defidently don't scrap your cap factory. Do the basic capture the nearby asteroids, develop them, and then get the three military labs and two civic labs (if their are enough nearby planets to make it worth while). The size of the map should decide weither you rush or build civic labs first. I personally only rush when their is less than thre jumps to the nearest enemy homeworld, and if that is the case you will probably not build civic for most of the game (unless you stalemate for a long time). 3-5 jumps gives you some space, but you their is a chance you will get raided, probably not with the intent on taking you out of the game but for damaging your econ or to destroy your cap ship. Thus you should still build military first, but don't slack on civic either (two labs are easy to build with even two planets). If its six or farther you could probably get away with civic first, just make sure to start building defenses early just in case.