Pull XModule attributes out into a mixin that can be applied to xblocks