clear bean factory