Creating mixins as functions