lantiq: clean up / fix LegacyDevice template handling