Refactor a code.