Pregunta de entrevista de UpCodes

When do you consider to make a code refactoring?