Abstract away the use of allocators