Refactoring Hibernate Config