Don't prematurely optimize. It hurts, sometimes, to look at code that we know could be refactored to read better -- and you should clean up such code whenever you can. Learn about the XY Problem and why sometimes, the issue that you're looking to solve goes deeper than just an ugly piece of code.