Add bean factory