Decompose ya-metrika into partial template