property tax refund received that was partially deducted in prior year

I received a refund of real estate taxes in 2023 for tax years 2022 and 2021. I did not itemize deductions in either of those years, but I did take a deduction on schedule e for a portion of those taxes due to renting out the property for part of the year. Therefore, I believe that the portion of the refund that relates to the amount previously deducted should be taxable this year as other income. However, when I enter the tax refund in Turbotax, and indicate that I did not itemize deductions, it defaults to none of the refund being taxable. I cannot see how to override this for the amounts that were deducted as part of schedule e expenses. I can easily calculate how much of the refund should be taxable, but how do I enter it in turbotax since the normal entry for state and local tax refunds doesn't take into account schedule e deductions?