Makes the code much DRYer and easier to read. Gets rid of some redundant
conditional logic for dealing with text posts. Thanks to Matt Brendzel at
General Assembly for helping me out with this!