Move logic for getting a file_hash and a Dockerfile into their own methods.