remove dependency setting on a bean