split setup_wp_configs into separate function