Remove some redundant dependencies.