Easier way of creating prototype beans in singleton context.