Create common method for allocating fragment nodes.