deploy: refactor