Hierarchical Dobiński-type relations via substitution and the moment problem