Dimerization Determines Substrate Specificity of a Bacterial Prenyltransferase