refactoring no codigo