Perhaps, but you need to tell it how to refactor or you’ll get more gibberish and helper functions. Hence, programming.