Simplify _strip_sha