Refactor vector of term_prefixes to function in R/prefixes.r