DRY up config loading