Refactor fetch

Remove direct references to checksum types, access them through the
Checksum::TYPES constant instead.