Extract dependency creation and options checking
Extract fetch_specs
Extract more methods from DependencyCommand#execute