Bean context refactory.