[FastCgi] Move methods closer to usage