Simplify initialization of handler