Refactor "file not found" checks to tools.