Use functions DRY up the config