Remove unneeded permissions