I've experienced this watching a coworker debugging that sort of code, he had initially written it all as a long chained statements, then had to undo it all to allow him to debug. Once it was extracted it could be debugged and step through it, great!
Once he was done debugging it he put it all back to how it was originally...
The mind boggles.