memory file 리펙토링