Problems of Formation of Professional Positions in a University Course on the History of the Middle Ages: Historical Analogy and Typology