Remove a dep of a target on itself.