Move attribute classes into common module.