extract deploy logic to different file