Change how an existing bean is determined