Cleanup unused permissions