refactor getActualFragmentType to a private helper exported by the fragments/model.js module.