Test code refactoring.