refactoring of bean creation into helper classes