Refactored deploy into it's own object. Not moved out of the app yet.