Refactor battle message functions of dq3 and dq6.