Forgot to say, the deployment aspect you saw are wrapped into DUP by the AS7 Webservices subsystem integration, and are executed in the later phases; you won't need to touch them at all.
In your new DUP, you will have to retrieve the annotation index (should be attached to the deployment unit) and use it to decide wether to install your handlers or not.