I applaud this, but I also advise against this for your career. Unless the change you're making has immediate and significant business benefits, from a PM/EM perspective you're 1) wasting time 2) potentially introducing bugs
The correct move is to wait until the org is so bogged down with tech debt that meaningful progress cannot be made, then switch companies/teams.