Remove duplicate template and resources keys