Keeping high quality in a code base either requires dedicated person/team.
There’s a profound difference between ugly code and tech debt. Many people don’t really understand the difference until they’ve struggled with it for a long time. They will alternately declare Tech Debt or YAGNI in wholly inappropriate situations.