Refactor duplicated methods into mixin