tbm_bufmgr: remove the duplicated code