Continue refactoring and importing Jax to v3