Clean up dependency list.