Merge _clearScope into _removeBoards and rename it to _optimizeSpells