Replace IDs with labels