Removing redundant dependencies