The previous code would grab the last listed org for the capsule
and then attempt to lookup all associated lifecycle environments
by that organization. The result is that if a capsule is associated
with 5 orgs, but only associated with the Library of one or two of them,
it may randomally decide to try to remove the lifecycle env from another org
The previous code would grab the last listed org for the capsule and then attempt to lookup all associated lifecycle environments by that organization. The result is that if a capsule is associated with 5 orgs, but only associated with the Library of one or two of them, it may randomally decide to try to remove the lifecycle env from another org
Closes: #363