[FastCgi] Minor cleanup and better code usage