Remove code duplication in commits.rb

commits.rb had commit comment code in it that was duplicated in
commit_comments.rb.
Merge pull request #436 from catsby/cleanup_commits

Remove code duplication in commits.rb