Removing permissions that are not used.