split BlockUtils.cpp into more source files