how was the growth of the republic aided by the roman army's use of the legions in warfare?