remove unnecessary bean