Bug 944249 - move the segment size and send button management to Compose

yep that's the intention; but this will be probably worked on by MADAI people. This patch was the refactoring patch to make this possible and easy (in addition to clean up the code)