Factorize client message sending