Move param validation into Templates.