Refactor icon-replacement mixin.