Pass extends block to mixin

Make extends and mixins play nicely together by separating their extending mechanism.