That thing where, near what you thought was the end of a software project, you rip the guts out and rewrite it from almost scratch.