Grouping logic in ConnectSSHAction into separate, more testable, classes