Extract code that removes hash table