Refactor message decoding functions for dq3 and dq6.