extracting CheckpointType instead of using a string