Document Controller refactorings.