PLD: remove deprecated template code