Lift the extractVector helper all the way out to a static helper function.