Remove redundant anchor IDs.