Move EEPROM operations to separate functions.