Refacotring of tcpwrappers templates