Refactor body of new_subject and content into one function