Replace verbose calls to ByteString::from_str with key() function