Use the correct definition scope for mixins