Refactor var.