Refactor positioning mixin functions