Remove unused permissions.