Moving some utilities to shared_core.