Moving things to shared_core and shared_ui.