Refactor: Remove a small bit of duplication from deploy script