Extract mixin to common tools repo