FS-27 moved hash function to own class