Refactoring environment