Pruning third party code