Move GetBasicAuth to top-level package.