Internal refactoring.