Optimize CSS imports in templates hierarchy