You have to get the agent to refactor it doesnt spontaneously do it.