Linearity violation in log regression model - please help

Hello everyone! I have built a multivariate logistic regression model to find the probability of developing diabetes based on various physiological factors. I'm stuck at checking for assumptions and two of my continuous variables are violating the assumption of linearity to log odds of dependent variable

- Attempted to use polynomial transformation for non-linear terms (both square and cubic) but made linearity even worse
- Using splines to handle non-linear relationships correlation coefficients remain at 0.2146844 and 0.2491066
- Create new model without two variables - AIC 2465.4, AUC 0.8534, Ressidual dev 2399.9 - not better fit

Is anyone able to offer advise about how to deal with such issue?