Automatic unit tests should be set up before refactoring to ensure routines still behave as expected.[5] Unit tests can bring stability to even large refactors when performed with a single atomic commit. A common strategy to allow safe and atomic refactors spanning multiple projects is to store all projects in a single repository, known as monorepo.[6]