Move retext to core.