Batch delegate functions to a module?

There’s a better way to do this if module_path is a list of strings:

module_path
|> Enum.map(&String.to_atom/1)
|> Module.concat()

If it’s a list of atoms (like it seems to be from your post) then just remove the Enum.map part and use Module.concat directly.