Well, let's not forget that MagicalTux bought MtGox from a guy who started it by reusing code written for a completely different purpose.
I would presume that since the last incident MagicalTux did not have the time and resource to rewrite the entire code, so I guess it's still patchwork...