Provide replecamants for p_type() and p_class() functions.