Remove unused method after refactoring.