refactor out code common to subject and comments
Merge pull request #12 from Fitzoh/master

refactor out code common to subject and comments