refactor: de-depulicate make_dep_prefix
implementation
#12203
Merged
make_dep_prefix
implementation
#12203