extsvc: Add ParseServiceType
Created by: ryanslade
Bitbucket ServiceType constants are mixed case so we still had places that were matching on raw strings after lowercasing.
This change moves the knowledge of how to parse ServiceType constants to the extsvc package.
Closes: https://github.com/sourcegraph/sourcegraph/issues/10296