Refactored connection classes into separate package.