distributor: pass plan to constructor

Because one distributor can process only one plan.