Why a mixin over a function?