Remove callbacks and implement config directives. bugid:111227