A little bit DRYer