Encapsulate hash-checking of size groups on its own module