Refactor NRPE, Icinga and Nagios modules.