DRYing up some stuff.