OOIION-1565 Refactor deployment activation logic

only top device in structuire is assoc to deployment resource. fixes build error.

@jamie-cyber1 please review
@mmeisinger please review