Move GET-TYPE out of the algorithm-specific area