Refactored usages of new to use the provided allocator model.