Questionable use of mixins. Why not a function?