Refactoring on Types and Atendimentos Controller