[cross] Extract base template directory for reusable parts.