refactoring letter orders controller