Remove unnecessary links