Refactor smell code.