refactor provider war.rb