label module: convert class declarations into mixins