The other helpers for handle_controlport_session() are defined inside the its scope, so why not this one?