Initialize controller instance within dispatch middleware.