Pull out the prefix of each reference