Refactor manager