Remove unrequired packages dependencies