DRY it up a bit