box: Move macros of box allocators.