Convert to new datadir id structure.