Refactored the body and title generation into new methods.