Remove unreachable dependencies