Changed the mixin() method to work on model and instances.