Remove duplicate root-table-prefix fn.

Besides eliminating duplicate code, this is necessary for hybrid backends.