Remove unused modes