Move three functions that are only needed for CONFIG_MEMORY_HOTPLUG