Move hashing methods to their own subpackage