Refactored render mixin