Makes sure legal extends the master template