Make small refactoring in battle_controller.