Changed the StructureMap dependency to an Autofac dependency.