Restructure internal allocators.