add comments to ModelMagic to improve scanning readability
Split ModelMagic into components

[#50538083]