Remove unnecessary reference assemblies.