remove unneeded security templates