thread: Simplify code for assigning the subject.