Create a function to reduce duplicated code size.
Create a function to reduce duplicated code size.

ch1c4um/pfsense,NOYB/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,dennypage/pfsense,brunostein/pfsense,dennypage/pfsense,pfsense/pfsense,dennypage/pfsense,pfsense/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,dennypage/pfsense,brunostein/pfsense,ch1c4um/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,jxmx/pfsense,ptorsten/pfsense,pfsense/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense,NOYB/pfsense,NOYB/pfsense,phil-davis/pfsense,BlackstarGroup/pfsense,pfsense/pfsense,phil-davis/pfsense,jxmx/pfsense,ch1c4um/pfsense,brunostein/pfsense,BlackstarGroup/pfsense,ptorsten/pfsense,phil-davis/pfsense