r20328: use prereq function instead of local implementation.