Removing some internal references to MessageSend
Extracting generic transaction code