Breaks the scale logic out into a mixin.