Remove a few hundred lines of boiler-plate for memory management and cleanup using custom New/Delete macros.