Seen hashes refactoring