Streamlining createMessage
Optimized isInThread calls