Refactor example deployment