Use existing functionality for #13251
# What does this PR do?

#13251 fixes some issue while re-implementing existing functionality. This PR refactors the fix to re-use the `model_type_to_module_name` implemented.