improve approach for owin context dependencies