Cleanup DynamicFolder and DynamicSublayer modules.