Removed hack around creating a flow bean before the factory bean is initialized