Poorly, and typically by making the same mistake enough times to document the decision. Code archeology is a bitch and a half.

https://en.wikipedia.org/wiki/Wikipedia:Chesterton's_fence