Replace ClassHandler with related functions.