Some refactoring of DofMapBuidler code.