You've worked somewhere for 3 years. At the beginning of the second year you were involved in what you thought would be a small project. You foolishly decided to take some risks with the choice of tools, you got slightly out of your depth, you ended up writing some nasty hacky code in the end as delays kicked in.
The client loved it, your boss loved it so much he started white-labeling it, and selling it on to other clients.
You've been the lead developer on this code that you can't bear looking at for over a year. It goes against all your programming morals. You are scared of refactoring it because it's been live for ages, everybody is happy with it except you. You're not quite prepared to squeeze in the refactoring in work time, because there is always more important things to be done.
Do you take it upon yourself and decide that it must be refactored, let it eat into your spare time because you deserve it?!
Do you carry on and hope nobody else notices what an awful mess the project is?
Do you leave your job and hope your work friends don't phone you, curse you forever more?