Refactoring spell to action