remove deprecated code from tools/templates [skip ci]