Improve the readability of directory based hashing and adhere to style conventions.