Changed the way mixin extends model prototype