DRY up config