This is a damn good article by Joel Spolsky on why rewriting software because it's "bad" can be a bad thing.