Split normalizeBranchAlias method