Remove unnecessary conditions around links