Refactor warcraft