Remove unneeded links