be2net: move un-exported routines from be.h to respective src files