Streamlined get_pivot_wavelength helper function.