this is very selfish, unless you're the only developer in your shop.
whoever works with you will have to bear the burden that you left behind because you think its a low ROI for YOU
whoever works with you will have to bear the burden that you left behind because you think its a low ROI for YOU
The 3rd time you touch a function is often a great time to make it awesome. However, a lot of code never reaches production and maintainability is more of an issue for code that survives.
I've known of or read the situation where someone opens some old code, thinks "Who wrote this hot garbage?", and then realizes it was them.
Did it work? Can you read and understand it? Then it has value.
Finding the right line in the sand for your current job is an art. There is ALWAYS more you can do, and being smartly-selfish is inevitable.