Make the 'flattern' helper into an underscore mixin