Refactor MaterialLoader (add enum, rename to MaterialHelper)