Factorize commonly used libsdd's types