1. A method comprising: receiving a classification of applications comprising two or more classifications; determining nodes reachable from imports of a first order classification; regrouping into a first resource, nodes reachable from imports of the first order classification; and modifying control flow, so nodes remain reachable from imports of the first order classification.