Early memory subsystem, refactoring