Avoid injecting the ISessionFactory in the container