autofac complete. refactoring