In my experience, it just needs some high level guidance.
And it's quite easy to ask an AI to refactor a certain way too.