Remove redlinks

(transform code nicked from Android side since it's already done)
(we should move some of these transforms into common code at some point?)

Change-Id: I3c4552eb9b1341995eebbb58108b4d6c37da8934
Merge "Remove redlinks"