Use a resource mixin to reduce bloat