Can you abstract the body and title generation into a method that encapsulates this the content logic? That would allow it to be overridden potentially.