Refactor display lists to use less memory.