be2net: move adapter fields alloc/free code to new routines