refactoring nhibernate and structuremap classes