Moving stuff that didn't belong out of the model class into helper classes.