Began refactoring common 'send message' code into shared function