Allow override of handler constructor