Refactor deploy file.