The problem I find with ticketing code quality tickets is three fold. 1) Not all code messes are equal. Technical debt in an area of code with high churn is expensive. Technical debt in code that works and doesn’t need to be touched again is zero interest and zero payments, and refactoring it actually just introduces risk for potentially zero again. If you make a ticket to clean up a messy module, you add the waste to talk about it in pointing, planning, etc.