DRYing up the yum checks