Internal refactorings.