Specialize a term if it's loadable.

def maybe_specialize(term, domain):
    """Specialize a term if it's loadable.
    """
    if isinstance(term, LoadableTerm):
        return term.specialize(domain)
    return term