Abstract out vector-getting logic