Reduce complexity of send_message