Convert OnCheckExemption to use std::function.
Purge caller.h and some related code.