Removes unused modules