Replace extend with mixins.