Don't add class attribute for internal-facing classes

The class attribute is unneded for these classes, and this improves
performance.