Moved code related to response hashes to response-hash.js