Factorize send context code
Correct CMD_* const name