Refactor SmellWarning.