compartmentalized, generalized, and reduced code