I understand what you mean but I have mixed feelings. On one side, I think it's sane to change the composerLayout dataset in the same place we add the "new" class (and I think it's kind of redundant too). On another side, I understand that you want that we set the composerLayout for thread and composer in the same function.

I'll think of it and maybe do it tomorrow :)