I think grug has the best refactoring advice: https://grugbrain.dev/