Clean up sample code using Owin.Types.