Refactor SmellWarning initializer.