Small refactor for FtpConnection